package cn.iocoder.yudao.module.mqtt.controller.admin.devicedriver.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备驱动分页 Request VO")
@Data
public class DeviceDriverPageReqVO extends PageParam {

    @Schema(description = "设备ID", example = "20409")
    private Long deviceId;

    @Schema(description = "通讯口ID", example = "30740")
    private String commPortId;

    @Schema(description = "驱动名称", example = "芋艿")
    private String driverName;

    @Schema(description = "品牌")
    private String brand;

    @Schema(description = "型号")
    private String model;

    @Schema(description = "设备地址")
    private String deviceAddress;

    @Schema(description = "最小采集时间(ms)")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] minCollectTime;

    @Schema(description = "通讯等待时间(ms)'")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] commWaitTime;

    @Schema(description = "16位整型")
    private String int16AddressRange;

    @Schema(description = "32/64位整型")
    private String  int3264AddressRan;

    @Schema(description = "32/64位浮点型")
    private String float3264AddressRange;

    @Schema(description = "字符串字节序")
    private String stringByteOrder;

    @Schema(description = "字符串编码")
    private String stringEncoding;

    @Schema(description = "分块采集方式")
    private String blockCollectMode;

    @Schema(description = "4区16位写功能码")
    private String codeWrite;

    @Schema(description = "通讯间隔时间(ms)'")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Integer[] commIntervalTime;

    @Schema(description = "描述", example = "你说的对")
    private String description;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}